<template>
  <div id="container">111</div>
</template>
<script>
export default {
  name: "demo",
  mounted() {
    this.initBaidumap();
  },
  methods: {
    initBaidumap() {
      let map = new BMapGL.Map("container");          // 创建地图实例
      let point = new BMapGL.Point(116.404, 39.915);  // 创建点坐标
      map.centerAndZoom(point, 15);                 // 初始化地图，设置中心点坐标和地图级别
    }
  }
}
</script>

<style scoped>
html{height:100%}
body{height:100%;margin:0px;padding:0px}
#container{height:100%}
</style>
